<!DOCTYPE html>
<!--管理用户界面-->
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>病人列表</title>
    <link rel="stylesheet" href="patientList.css">
</head>
<body>

<h4>
    欢迎您：<text th:text="${session.doctorVO.name}"></text>&ensp;
    科室：<text th:text="${session.doctorVO.office}"></text>&ensp;
    权限：<text th:text="${session.doctorVO.role}"></text>
</h4>

<div class="select">
    <a href="/listAllPatient">
        <input type="submit" class="button" value="标签绑定">
    </a>
    <a href="/listAllTags">
        <input type="submit" class="button" value="标签管理">
    </a>
</div>
<hr>

<div class="title">
    <h2 style="font-size: xxx-large">病人列表</h2>
</div>
<div class="list">
    <table class="patient">
        <tr>
            <th>病人id</th>
            <th>病人名称</th>
            <th>手机号码</th>
        </tr>
        <div th:each="patient:${ListAllPatient}" >                         <!--遍历-->
            <tr>
                <div>
                    <td th:text="${patient.id}"> </td>
                    <td th:text="${patient.name}"> </td>
                    <td th:text="${patient.phone}"></td>
<!--                    <td th:text="${patient.patient_medicard}"></td>-->
                    <td>
                        <a th:href="@{/getBindPageByPatientId(bind_patient_id=${patient.id})}">详情</a> <!--链接到详情接口-->
                    </td>
                </div>
            </tr>

        </div>
    </table>
</div>
<script language="javascript" type="text/javascript">
    function showupdate(u_id){          //显示修改表单
        document.getElementById(u_id).style.display=document.getElementById(u_id).style.display=="none"?"block":"none";
    }
</script>
</body>
</html>
